import Vue from "vue"
import Vuex from "vuex"
// 引入仓库
import home from './home/index'
import search from './search/index'
import detail from './detail/index'
import cartList from './cartList/index'
import user from './user/index'
import trade from './trade/index'

// 初始化插件
Vue.use(Vuex)

export default new Vuex.Store({
    modules:{
        home,
        search,
        detail,
        cartList,
        user,
        trade
    }
})
